package shared.messages;

import shared.player.Player;


/**
 * The Class WinMessage
 * - used to send winner and game end information.
 */
public class WinMessage extends Message{
	
	/** The universal version identifier. */
	private static final long serialVersionUID = -4688347044670892422L;
	
	/** The winner of the game. */
	public Player winner;
	
	/** The games id. */
	public transient int gameId;
	
	/**
	 * Instantiates a new win message.
	 *
	 * @param winner the winner of the game
	 * @param gameId the game id
	 */
	public WinMessage(Player winner, int gameId){
		this.gameId = gameId;
		this.winner = winner;
	}

}
